﻿using NJsonSchema;
using NJsonSchema.Generation.TypeMappers;

namespace QuickGet.Common
{
    public class VersionTypeMapper : ITypeMapper
    {
        public Type MappedType => typeof(Version);

        public bool UseReference => false;

        public void GenerateSchema(JsonSchema schema, TypeMapperContext context)
        {
            schema.Type = JsonObjectType.String;
        }
    }
}
